package com.minsheng.epidemic_rep.controller;

import com.minsheng.epidemic_rep.service.IFeverClinicsService;
import com.minsheng.epidemic_rep.service.IStudentService;
import com.minsheng.epidemic_rep.util.GenerateCsv;
import com.minsheng.epidemic_rep.util.ZipUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;

/**
 * @Classname FeverClinicsController
 * @Description TODO
 * @Date 2020/9/30 12:37
 * @Created by You
 */
@RestController
public class FeverClinicsController {

    @Autowired
    private IFeverClinicsService feverClinicsService;

    //生成CSV文件
    @RequestMapping("/fevcsv")
    public String craetCsc() {

        try {
            feverClinicsService.createCsv();
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return "success";
    }


}
